package com.jumeng.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jumeng.enums.OrderStatus;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("t_order")
public class OrderEntity extends BaseEntity{

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "code")
    private String code;

    @TableField(value = "account_station_no")
    private String accountStationNo;

    @TableField(value = "course_code")
    private String courseCode;

    @TableField("order_no")
    private String orderNo;

    @TableField("order_price")
    private BigDecimal orderPrice;

    @TableField("status")
    private OrderStatus status;

    @TableField("price_time")
    private LocalDateTime priceTime;

}
